package com.itheima.service;

import com.itheima.mapper.UserMapper;
import com.itheima.pojo.User;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author Jt
 * @date 2021/4/5 21:11
 */
@Service
public class UserService {

    @Resource
    private UserMapper userMapper;

    public User queryById (String username) {
        return userMapper.findById(username);
    }

}
